Integrand size = 40, antiderivative size = 294 \[ \int \frac {\sqrt {c+e x+d x^2} \sqrt {a^2+2 a b x^2+b^2 x^4}}{x^2} \, dx=\frac {((b c+4 a d) e+2 d (b c+2 a d) x) \sqrt {c+e x+d x^2} \sqrt {a^2+2 a b x^2+b^2 x^4}}{4 c d \left (a+b x^2\right )}-\frac {a \left (c+e x+d x^2\right )^{3/2} \sqrt {a^2+2 a b x^2+b^2 x^4}}{c x \left (a+b x^2\right )}+\frac {\left (4 b c d+8 a d^2-b e^2\right ) \sqrt {a^2+2 a b x^2+b^2 x^4} \text {arctanh}\left (\frac {e+2 d x}{2 \sqrt {d} \sqrt {c+e x+d x^2}}\right )}{8 d^{3/2} \left (a+b x^2\right )}-\frac {a e \sqrt {a^2+2 a b x^2+b^2 x^4} \text {arctanh}\left (\frac {2 c+e x}{2 \sqrt {c} \sqrt {c+e x+d x^2}}\right )}{2 \sqrt {c} \left (a+b x^2\right )} \]
[Out]
Time = 0.48 (sec) , antiderivative size = 294, normalized size of antiderivative = 1.00, number of steps used = 8, number of rules used = 7, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.175, Rules used = {6876, 1664, 828, 857, 635, 212, 738} \[ \int \frac {\sqrt {c+e x+d x^2} \sqrt {a^2+2 a b x^2+b^2 x^4}}{x^2} \, dx=\frac {\sqrt {a^2+2 a b x^2+b^2 x^4} \left (8 a d^2+4 b c d-b e^2\right ) \text {arctanh}\left (\frac {2 d x+e}{2 \sqrt {d} \sqrt {c+d x^2+e x}}\right )}{8 d^{3/2} \left (a+b x^2\right )}-\frac {a e \sqrt {a^2+2 a b x^2+b^2 x^4} \text {arctanh}\left (\frac {2 c+e x}{2 \sqrt {c} \sqrt {c+d x^2+e x}}\right )}{2 \sqrt {c} \left (a+b x^2\right )}-\frac {a \sqrt {a^2+2 a b x^2+b^2 x^4} \left (c+d x^2+e x\right )^{3/2}}{c x \left (a+b x^2\right )}+\frac {\sqrt {a^2+2 a b x^2+b^2 x^4} \sqrt {c+d x^2+e x} (e (4 a d+b c)+2 d x (2 a d+b c))}{4 c d \left (a+b x^2\right )} \]
[In]
[Out]
Rule 212
Rule 635
Rule 738
Rule 828
Rule 857
Rule 1664
Rule 6876
Rubi steps \begin{align*} \text {integral}& = \frac {\sqrt {a^2+2 a b x^2+b^2 x^4} \int \frac {\left (2 a b+2 b^2 x^2\right ) \sqrt {c+e x+d x^2}}{x^2} \, dx}{2 a b+2 b^2 x^2} \\ & = -\frac {a \left (c+e x+d x^2\right )^{3/2} \sqrt {a^2+2 a b x^2+b^2 x^4}}{c x \left (a+b x^2\right )}-\frac {\sqrt {a^2+2 a b x^2+b^2 x^4} \int \frac {(-a b e-2 b (b c+2 a d) x) \sqrt {c+e x+d x^2}}{x} \, dx}{c \left (2 a b+2 b^2 x^2\right )} \\ & = \frac {((b c+4 a d) e+2 d (b c+2 a d) x) \sqrt {c+e x+d x^2} \sqrt {a^2+2 a b x^2+b^2 x^4}}{4 c d \left (a+b x^2\right )}-\frac {a \left (c+e x+d x^2\right )^{3/2} \sqrt {a^2+2 a b x^2+b^2 x^4}}{c x \left (a+b x^2\right )}+\frac {\sqrt {a^2+2 a b x^2+b^2 x^4} \int \frac {4 a b c d e+b c \left (4 b c d+8 a d^2-b e^2\right ) x}{x \sqrt {c+e x+d x^2}} \, dx}{4 c d \left (2 a b+2 b^2 x^2\right )} \\ & = \frac {((b c+4 a d) e+2 d (b c+2 a d) x) \sqrt {c+e x+d x^2} \sqrt {a^2+2 a b x^2+b^2 x^4}}{4 c d \left (a+b x^2\right )}-\frac {a \left (c+e x+d x^2\right )^{3/2} \sqrt {a^2+2 a b x^2+b^2 x^4}}{c x \left (a+b x^2\right )}+\frac {\left (a b e \sqrt {a^2+2 a b x^2+b^2 x^4}\right ) \int \frac {1}{x \sqrt {c+e x+d x^2}} \, dx}{2 a b+2 b^2 x^2}+\frac {\left (b \left (4 b c d+8 a d^2-b e^2\right ) \sqrt {a^2+2 a b x^2+b^2 x^4}\right ) \int \frac {1}{\sqrt {c+e x+d x^2}} \, dx}{4 d \left (2 a b+2 b^2 x^2\right )} \\ & = \frac {((b c+4 a d) e+2 d (b c+2 a d) x) \sqrt {c+e x+d x^2} \sqrt {a^2+2 a b x^2+b^2 x^4}}{4 c d \left (a+b x^2\right )}-\frac {a \left (c+e x+d x^2\right )^{3/2} \sqrt {a^2+2 a b x^2+b^2 x^4}}{c x \left (a+b x^2\right )}-\frac {\left (2 a b e \sqrt {a^2+2 a b x^2+b^2 x^4}\right ) \text {Subst}\left (\int \frac {1}{4 c-x^2} \, dx,x,\frac {2 c+e x}{\sqrt {c+e x+d x^2}}\right )}{2 a b+2 b^2 x^2}+\frac {\left (b \left (4 b c d+8 a d^2-b e^2\right ) \sqrt {a^2+2 a b x^2+b^2 x^4}\right ) \text {Subst}\left (\int \frac {1}{4 d-x^2} \, dx,x,\frac {e+2 d x}{\sqrt {c+e x+d x^2}}\right )}{2 d \left (2 a b+2 b^2 x^2\right )} \\ & = \frac {((b c+4 a d) e+2 d (b c+2 a d) x) \sqrt {c+e x+d x^2} \sqrt {a^2+2 a b x^2+b^2 x^4}}{4 c d \left (a+b x^2\right )}-\frac {a \left (c+e x+d x^2\right )^{3/2} \sqrt {a^2+2 a b x^2+b^2 x^4}}{c x \left (a+b x^2\right )}+\frac {\left (4 b c d+8 a d^2-b e^2\right ) \sqrt {a^2+2 a b x^2+b^2 x^4} \tanh ^{-1}\left (\frac {e+2 d x}{2 \sqrt {d} \sqrt {c+e x+d x^2}}\right )}{8 d^{3/2} \left (a+b x^2\right )}-\frac {a e \sqrt {a^2+2 a b x^2+b^2 x^4} \tanh ^{-1}\left (\frac {2 c+e x}{2 \sqrt {c} \sqrt {c+e x+d x^2}}\right )}{2 \sqrt {c} \left (a+b x^2\right )} \\ \end{align*}
Time = 0.61 (sec) , antiderivative size = 171, normalized size of antiderivative = 0.58 \[ \int \frac {\sqrt {c+e x+d x^2} \sqrt {a^2+2 a b x^2+b^2 x^4}}{x^2} \, dx=\frac {\sqrt {\left (a+b x^2\right )^2} \left (\sqrt {c} \left (4 b c d+8 a d^2-b e^2\right ) x \text {arctanh}\left (\frac {e+2 d x}{2 \sqrt {d} \sqrt {c+x (e+d x)}}\right )+2 \sqrt {d} \left (\sqrt {c} \sqrt {c+x (e+d x)} (-4 a d+b x (e+2 d x))+4 a d e x \text {arctanh}\left (\frac {\sqrt {d} x-\sqrt {c+x (e+d x)}}{\sqrt {c}}\right )\right )\right )}{8 \sqrt {c} d^{3/2} x \left (a+b x^2\right )} \]
[In]
[Out]
Time = 0.59 (sec) , antiderivative size = 229, normalized size of antiderivative = 0.78
method | result | size |
risch | \(-\frac {a \sqrt {d \,x^{2}+e x +c}\, \sqrt {\left (b \,x^{2}+a \right )^{2}}}{x \left (b \,x^{2}+a \right )}+\frac {\left (\sqrt {d}\, a \ln \left (\frac {\frac {e}{2}+d x}{\sqrt {d}}+\sqrt {d \,x^{2}+e x +c}\right )+\frac {b c \ln \left (\frac {\frac {e}{2}+d x}{\sqrt {d}}+\sqrt {d \,x^{2}+e x +c}\right )}{2 \sqrt {d}}-\frac {a e \ln \left (\frac {2 c +e x +2 \sqrt {c}\, \sqrt {d \,x^{2}+e x +c}}{x}\right )}{2 \sqrt {c}}+\frac {b x \sqrt {d \,x^{2}+e x +c}}{2}+\frac {b e \sqrt {d \,x^{2}+e x +c}}{4 d}-\frac {b \,e^{2} \ln \left (\frac {\frac {e}{2}+d x}{\sqrt {d}}+\sqrt {d \,x^{2}+e x +c}\right )}{8 d^{\frac {3}{2}}}\right ) \sqrt {\left (b \,x^{2}+a \right )^{2}}}{b \,x^{2}+a}\) | \(229\) |
default | \(\frac {\sqrt {\left (b \,x^{2}+a \right )^{2}}\, \left (8 d^{\frac {7}{2}} \sqrt {d \,x^{2}+e x +c}\, a \,x^{2}-4 d^{\frac {5}{2}} \sqrt {c}\, \ln \left (\frac {2 c +e x +2 \sqrt {c}\, \sqrt {d \,x^{2}+e x +c}}{x}\right ) a e x +4 d^{\frac {5}{2}} \sqrt {d \,x^{2}+e x +c}\, b c \,x^{2}-8 d^{\frac {5}{2}} \left (d \,x^{2}+e x +c \right )^{\frac {3}{2}} a +8 d^{\frac {5}{2}} \sqrt {d \,x^{2}+e x +c}\, a e x +2 d^{\frac {3}{2}} \sqrt {d \,x^{2}+e x +c}\, b c e x +8 \ln \left (\frac {2 \sqrt {d \,x^{2}+e x +c}\, \sqrt {d}+2 d x +e}{2 \sqrt {d}}\right ) a c \,d^{3} x +4 \ln \left (\frac {2 \sqrt {d \,x^{2}+e x +c}\, \sqrt {d}+2 d x +e}{2 \sqrt {d}}\right ) b \,c^{2} d^{2} x -\ln \left (\frac {2 \sqrt {d \,x^{2}+e x +c}\, \sqrt {d}+2 d x +e}{2 \sqrt {d}}\right ) b c d \,e^{2} x \right )}{8 \left (b \,x^{2}+a \right ) c x \,d^{\frac {5}{2}}}\) | \(289\) |
[In]
[Out]
none
Time = 0.66 (sec) , antiderivative size = 731, normalized size of antiderivative = 2.49 \[ \int \frac {\sqrt {c+e x+d x^2} \sqrt {a^2+2 a b x^2+b^2 x^4}}{x^2} \, dx=\left [\frac {4 \, a \sqrt {c} d^{2} e x \log \left (\frac {8 \, c e x + {\left (4 \, c d + e^{2}\right )} x^{2} - 4 \, \sqrt {d x^{2} + e x + c} {\left (e x + 2 \, c\right )} \sqrt {c} + 8 \, c^{2}}{x^{2}}\right ) - {\left (4 \, b c^{2} d + 8 \, a c d^{2} - b c e^{2}\right )} \sqrt {d} x \log \left (8 \, d^{2} x^{2} + 8 \, d e x - 4 \, \sqrt {d x^{2} + e x + c} {\left (2 \, d x + e\right )} \sqrt {d} + 4 \, c d + e^{2}\right ) + 4 \, {\left (2 \, b c d^{2} x^{2} + b c d e x - 4 \, a c d^{2}\right )} \sqrt {d x^{2} + e x + c}}{16 \, c d^{2} x}, \frac {2 \, a \sqrt {c} d^{2} e x \log \left (\frac {8 \, c e x + {\left (4 \, c d + e^{2}\right )} x^{2} - 4 \, \sqrt {d x^{2} + e x + c} {\left (e x + 2 \, c\right )} \sqrt {c} + 8 \, c^{2}}{x^{2}}\right ) - {\left (4 \, b c^{2} d + 8 \, a c d^{2} - b c e^{2}\right )} \sqrt {-d} x \arctan \left (\frac {\sqrt {d x^{2} + e x + c} {\left (2 \, d x + e\right )} \sqrt {-d}}{2 \, {\left (d^{2} x^{2} + d e x + c d\right )}}\right ) + 2 \, {\left (2 \, b c d^{2} x^{2} + b c d e x - 4 \, a c d^{2}\right )} \sqrt {d x^{2} + e x + c}}{8 \, c d^{2} x}, \frac {8 \, a \sqrt {-c} d^{2} e x \arctan \left (\frac {\sqrt {d x^{2} + e x + c} {\left (e x + 2 \, c\right )} \sqrt {-c}}{2 \, {\left (c d x^{2} + c e x + c^{2}\right )}}\right ) - {\left (4 \, b c^{2} d + 8 \, a c d^{2} - b c e^{2}\right )} \sqrt {d} x \log \left (8 \, d^{2} x^{2} + 8 \, d e x - 4 \, \sqrt {d x^{2} + e x + c} {\left (2 \, d x + e\right )} \sqrt {d} + 4 \, c d + e^{2}\right ) + 4 \, {\left (2 \, b c d^{2} x^{2} + b c d e x - 4 \, a c d^{2}\right )} \sqrt {d x^{2} + e x + c}}{16 \, c d^{2} x}, \frac {4 \, a \sqrt {-c} d^{2} e x \arctan \left (\frac {\sqrt {d x^{2} + e x + c} {\left (e x + 2 \, c\right )} \sqrt {-c}}{2 \, {\left (c d x^{2} + c e x + c^{2}\right )}}\right ) - {\left (4 \, b c^{2} d + 8 \, a c d^{2} - b c e^{2}\right )} \sqrt {-d} x \arctan \left (\frac {\sqrt {d x^{2} + e x + c} {\left (2 \, d x + e\right )} \sqrt {-d}}{2 \, {\left (d^{2} x^{2} + d e x + c d\right )}}\right ) + 2 \, {\left (2 \, b c d^{2} x^{2} + b c d e x - 4 \, a c d^{2}\right )} \sqrt {d x^{2} + e x + c}}{8 \, c d^{2} x}\right ] \]
[In]
[Out]
\[ \int \frac {\sqrt {c+e x+d x^2} \sqrt {a^2+2 a b x^2+b^2 x^4}}{x^2} \, dx=\int \frac {\sqrt {c + d x^{2} + e x} \sqrt {\left (a + b x^{2}\right )^{2}}}{x^{2}}\, dx \]
[In]
[Out]
Exception generated. \[ \int \frac {\sqrt {c+e x+d x^2} \sqrt {a^2+2 a b x^2+b^2 x^4}}{x^2} \, dx=\text {Exception raised: ValueError} \]
[In]
[Out]
none
Time = 0.33 (sec) , antiderivative size = 238, normalized size of antiderivative = 0.81 \[ \int \frac {\sqrt {c+e x+d x^2} \sqrt {a^2+2 a b x^2+b^2 x^4}}{x^2} \, dx=\frac {a e \arctan \left (-\frac {\sqrt {d} x - \sqrt {d x^{2} + e x + c}}{\sqrt {-c}}\right ) \mathrm {sgn}\left (b x^{2} + a\right )}{\sqrt {-c}} + \frac {1}{4} \, \sqrt {d x^{2} + e x + c} {\left (2 \, b x \mathrm {sgn}\left (b x^{2} + a\right ) + \frac {b e \mathrm {sgn}\left (b x^{2} + a\right )}{d}\right )} - \frac {{\left (4 \, b c d \mathrm {sgn}\left (b x^{2} + a\right ) + 8 \, a d^{2} \mathrm {sgn}\left (b x^{2} + a\right ) - b e^{2} \mathrm {sgn}\left (b x^{2} + a\right )\right )} \log \left ({\left | 2 \, {\left (\sqrt {d} x - \sqrt {d x^{2} + e x + c}\right )} \sqrt {d} + e \right |}\right )}{8 \, d^{\frac {3}{2}}} + \frac {{\left (\sqrt {d} x - \sqrt {d x^{2} + e x + c}\right )} a e \mathrm {sgn}\left (b x^{2} + a\right ) + 2 \, a c \sqrt {d} \mathrm {sgn}\left (b x^{2} + a\right )}{{\left (\sqrt {d} x - \sqrt {d x^{2} + e x + c}\right )}^{2} - c} \]
[In]
[Out]
Timed out. \[ \int \frac {\sqrt {c+e x+d x^2} \sqrt {a^2+2 a b x^2+b^2 x^4}}{x^2} \, dx=\int \frac {\sqrt {{\left (b\,x^2+a\right )}^2}\,\sqrt {d\,x^2+e\,x+c}}{x^2} \,d x \]
[In]
[Out]